
import { createNamespacedHelpers } from 'vuex'
import store from '@/store'

const { mapState } = createNamespacedHelpers('permission')

export default {

  computed: {
    ...mapState(['point'])
  },
  methods: {

    isDisabled(val) {
      const point = store.state.user.userInfo.roles.points
      return !point.includes(val)
    }
  }
}
